package com.example.rabbitdemo.controller;

import org.springframework.kafka.core.KafkaTemplate;

//@RestController
public class KafKaController {
//    @Autowired
    private KafkaTemplate<String,String> template;

//    @GetMapping("/testKfk")
    public String send(String topic,String key,String data){
        template.send(topic,key,data);
        return "ok";
    }

}
